import turtle as t
import time


def circles(n):
    my_pen = t.Pen()
    my_pen.speed(10)
    for i in range(1, n):
        draw_circle(my_pen, 0, 0, i * 10)
    time.sleep(3)


def circles_recurrence(n):
    my_pen = t.Pen()
    my_pen.speed(10)
    if n == 0:
        return
    print(n)
    draw_circle(my_pen, 0, 0, n * 10)
    circles(n - 1)


def draw_circle(pen, x, y, r):
    pen.up()
    pen.goto(x, y - r)
    pen.down()
    pen.circle(r)


if __name__ == '__main__':
    num = 5
    # circles(num)
    circles_recurrence(num)
